package com.yc.damai;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@SpringBootApplication(scanBasePackages = "com.yc.damai.web")
@EnableFeignClients
public class IndexApp implements WebMvcConfigurer {
    public static void main(String[] args) {
        SpringApplication.run(IndexApp.class, args);
    }

    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        registry.addResourceHandler("/**")
                .addResourceLocations("file:D:/_文件柜/134/gitee/组长/yc134-132/damai/damai-parent/damai-index/src/main/resources/static/");
    }
}
